//noinspection TypeScriptUnresolvedVariable
export let Magics = {
    Byte1M: 1048576,
    Byte2M: 2097152,
    Byte4M: 4194304,
    Byte50M: 52428800,

    TimeSec1H: 3600,
    TimeSec4H: 14400,
    TimeSec24H: 86400,

    TimeMS1H: 3600000,
    TimeMS4H: 14400000,
    TimeMS8H: 28800000,
    TimeMS24H: 86400000,

    TimeMS1D: 86400000,
    TimeMS7D: 604800000,
    TimeMS30D: 2592000000,

    TokenLifeTime: 604800000,    //7 days

    BodyParamLimit: 4000,

    IdcGenInterval: 60000,
    IdcLifeTime: 900000,   // 15m * 60s * 1000

    UploadFieldMaxSize: 31457280, //30M
    UploadFileMaxSize: 2097152,   // 2M
    AdminFileMaxSize: 31457280,  // 30M
    AdminFieldMaxSize: 52428800,  // 50M
    UploadBasePath: process.env.UPLOADS || "./uploads",
    ImgsPath: '/imgs',
    ExcelPath: '/xls',
    DistsPath: '/dists',

    OrderPageDisplay: {
        app: 5,
        web: 5
    },

    SessUser: 'user',
    SessSysUser: 'sysUser',
    SessPreOrder: 'preOrder',
    AllInOne: 'AppInOne',
    CookieSecret: 'xianxin_',
    PasswdSalt: "826helloworld2b187b29",

    HomePageItemCount: 15,
    HomeOrderItemCount: 10,
};